<div class='top' onmousedown='sortable(this)' title='可以用鼠标拖拽来随意摆放哦'>
  <div class='title'>
    <%= link_to_tool_by_setting @setting %>
  </div>
  <div class='supports'>
    
  </div>
  <div class='tools'>
    <span id="portalet_<%= @setting.id %>_arrows" style='display:none;'>
      <%= link_to "←", "index", :class => :arrow %>
      <%= link_to "↑", "index", :class => :arrow %>
      <%= link_to "↓", "index", :class => :arrow %>
      <%= link_to "→", "index", :class => :arrow %>
    </span>
    <span class='h'>
      <%= link_to_remote "克隆", 
            :update => "' + $('portalet_#{@setting.id}').parentNode.id + '" ,
            :url => copy_tools_favorite_search_url(@setting),
            :method => :post,
            :html => {
              :class => :h 
            }            
        %>
        
      <%= link_to_remote "移除", 
            :confirm => '确认要扔掉这片吐司吗？',
            :url => tools_favorite_search_url(@setting),
            :method => :delete,
            :loading => "Effect.Fade('portalet_#{@setting.id}')",
            :html => {
              :class => :h 
            }            
        %>
    </span>
  </div>
</div>
<div id='tool_<%= @setting.id %>_content' class='content'>
  <div class='favorite_search'>
    <div class='line'>
      <div class='title'>
        旅游出行
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#train">火车车次</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#plane">航班班次</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#hotel">酒店查询</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#map">地图搜索</a>
        </div>
      </div>
    </div>
    <div class='line'>
      <div class='title'>
        资料获取
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://www.hao123.com/haoserver/jiaotongcx.htm">交通处罚</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#calendar">万年历</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://www.tvsou.com/">电视预告</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://www.kiees.cn/">快递查询</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://www.51jiemeng.com/">周公解梦</a>
        </div>
      </div>
    </div>
    <div class='line'>
      <div class='title'>
        投资相关
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#stock">股票信息</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#lottery">彩票信息</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#fund">基金净值</a>
        </div>
      </div>
    </div>
    <div class='line'>
      <div class='title'>
        通信相关
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#cellphone">手机号码</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#IPaddress">IP地址</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#zipcode">邮政编码</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#areacode">地区区号</a>
        </div>
      </div>
    </div>
    <div class='line'>
      <div class='title'>
        词典
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#engdictionary">英语辞典</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#baike">百科词典</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#chsdictionary">汉语字典</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#chndictionary">成语词典</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#translate">英汉互译</a>
        </div>
      </div>
    </div>
    <div class='line'>
      <div class='title'>
        计算转换
      </div>
      <div class='items'>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#calculator">计算器</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#foreignexchange">货币兑换</a>
        </div>
        <div>
          <a target="_blank" style="white-space: nowrap;" href="http://life.baidu.com/#tolerance">度量转换</a>
        </div>
      </div>
    </div>
  </div>  
</div>

  